﻿@using BabyShop.Site.Foundation
@using BabyShop.Site.Models
<nav id="userCenterNav">
    <div class="w">
        <span class="collect">
            <b></b>
            <a href="javascript:void(0);" title="收藏BabyShop">收藏BabyShop</a>
        </span>
        <ul>
            <li class="fore1">
            @{var currUser = PersistentDataContainer.Current.Read<User>();}
            您好，@if( currUser == default(User)){
                   <text>欢迎来到BabyShop！[</text>@Html.ActionLink("请登录", "Logon", "Account")<text>]，新用户？[</text>@Html.ActionLink("免费注册", "Register", "Account", null, new { @class = "link-regist" })<text>]</text>
               }
               else {
                   @Html.ActionLink(currUser.NickName ?? currUser.Account, "UserCenter", "Account", null, new { @class = "link-regist" })
               }
            </li>
            <li class="fore2">我的购物车</li>
            <li>帮助中心</li>
        </ul>
        <span class="ui-helper-clearfix"></span>
    </div>    
</nav>
